package ru.budget.mobile.data.sources.local.room

import androidx.room.*
import ru.budget.mobile.data.sources.local.entities.IncomeDB

@Dao
interface IncomeDAO {

    @Query("SELECT * FROM incomes")
    suspend fun incomeList(): List<IncomeDB>

    @Insert(onConflict = OnConflictStrategy.IGNORE)
    suspend fun addIncome(income: IncomeDB): Long
}
